﻿using System;
using System.Collections.Generic;
using System.Text;
using DepInnerTask.Common.Entity;
using System.Collections;
namespace DepInnerTask.Common.Interface
{
   public interface IDepInnerTask
    {
        /// <summary>
        /// 获取部内工单
        /// </summary>
        /// <param name="where"></param>
        /// <param name="start"></param>
        /// <param name="limit"></param>
        /// <param name="count"></param>
        /// <returns></returns>
        IList GetList(string where, int start, int limit, out int count);
        IList GetList(string where);
        DepInnerTaskEntity Get(string taskId);

        void Insert(DepInnerTaskEntity entity);
        void Insert(DepInnerTaskEntity entity,MessageQueueEntity taskentity,TInBoxReadEntity boxentity);
        void Update(DepInnerTaskEntity entity,string flag);

        bool Exists(string taskId);

        void Delete(string taskId);
    }
}
